package com.springboot5.demo.info;

import org.springframework.boot.actuate.info.Info;
import org.springframework.boot.actuate.info.InfoContributor;
import org.springframework.stereotype.Component;

import java.util.HashMap;
import java.util.Map;

@Component
public class Appinfo implements InfoContributor {
    @Override
    public void contribute(Info.Builder builder) {
        Map<String,Object> map=new HashMap<>();
        builder.withDetail("msg","你好")
                .withDetail("hello","小冉")
                .withDetails(map);
    }
}
